dart interface

205

//Dart has no interface keyword. Instead, all classes implicitly define an interface. Therefore, you can implement any class.

class MockSpaceship implements Spacecraft {
  // ···
}
//Dart has no interface keyword. Instead, all classes implicitly define an interface.
//Therefore, you can implement any class.

class MockSpaceship implements Spacecraft {
  // ···
}

Comments

Submit
0 Comments